﻿<%@ Import Namespace="System.Reflection" %>
<%@ Import Namespace="AFI.Speargun.Web.Core" %>

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<System.Collections.Generic.Dictionary<AssetEntryAdditionalDefinitionField, string>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    资产 - 查看 -
    <%= ViewData["AssetEntry.Appellation"]%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        查看 -
        <%= ViewData["AssetEntry.Appellation"]%></h2>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="data-table">
        <caption>
            附加信息</caption>
        <tr>
            <th>
                项目
            </th>
            <th>
                值
            </th>
            <th>
                备注
            </th>
        </tr>
        <%
            foreach (var i in Model)
            {
        %>
        <tr>
            <th scope="row">
                <%= Html.Encode(i.Key.Appellation) %>:
            </th>
            <td>
                <%= Html.Encode(i.Value)%>
            </td>
            <td>
                <%= Html.Encode(i.Key.Remark) %>
            </td>
        </tr>
        <% } %>
    </table>
    <p>
        <%=Html.ActionLink("[编辑]", "Edit", new { id = ViewData["AssetEntryId"] })%>
    </p>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LeftContent" runat="server">
    <% Html.RenderPartial("AssetEntryMenu", ViewData["AssetEntryId"].ToString()); %>
</asp:Content>
